/**
 * This class contains generated code from the Codename One Designer, DO NOT MODIFY!
 * This class is designed for subclassing that way the code generator can overwrite it
 * anytime without erasing your changes which should exist in a subclass!
 * For details about this file and how it works please read this blog post:
 * http://codenameone.blogspot.com/2010/10/ui-builder-class-how-to-actually-use.html
*/
package generated;

import com.codename1.ui.*;
import com.codename1.ui.util.*;
import com.codename1.ui.plaf.*;
import com.codename1.ui.events.*;

public abstract class StateMachineBase extends UIBuilder {
    private Container aboutToShowThisContainer;
    /**
     * this method should be used to initialize variables instead of
     * the constructor/class scope to avoid race conditions
     */
    /**
    * @deprecated use the version that accepts a resource as an argument instead
    
**/
    protected void initVars() {}

    protected void initVars(Resources res) {}

    public StateMachineBase(Resources res, String resPath, boolean loadTheme) {
        startApp(res, resPath, loadTheme);
    }

    public Container startApp(Resources res, String resPath, boolean loadTheme) {
        initVars();
        UIBuilder.registerCustomComponent("WebBrowser", com.codename1.components.WebBrowser.class);
        UIBuilder.registerCustomComponent("Button", com.codename1.ui.Button.class);
        UIBuilder.registerCustomComponent("ComboBox", com.codename1.ui.ComboBox.class);
        UIBuilder.registerCustomComponent("Form", com.codename1.ui.Form.class);
        UIBuilder.registerCustomComponent("InfiniteProgress", com.codename1.components.InfiniteProgress.class);
        UIBuilder.registerCustomComponent("Label", com.codename1.ui.Label.class);
        UIBuilder.registerCustomComponent("TextField", com.codename1.ui.TextField.class);
        UIBuilder.registerCustomComponent("Container", com.codename1.ui.Container.class);
        if(loadTheme) {
            if(res == null) {
                try {
                    if(resPath.endsWith(".res")) {
                        res = Resources.open(resPath);
                        System.out.println("Warning: you should construct the state machine without the .res extension to allow theme overlays");
                    } else {
                        res = Resources.openLayered(resPath);
                    }
                } catch(java.io.IOException err) { err.printStackTrace(); }
            }
            initTheme(res);
        }
        if(res != null) {
            setResourceFilePath(resPath);
            setResourceFile(res);
            initVars(res);
            return showForm("Bienvenido", null);
        } else {
            Form f = (Form)createContainer(resPath, "Bienvenido");
            initVars(fetchResourceFile());
            beforeShow(f);
            f.show();
            postShow(f);
            return f;
        }
    }

    public Container createWidget(Resources res, String resPath, boolean loadTheme) {
        initVars();
        UIBuilder.registerCustomComponent("WebBrowser", com.codename1.components.WebBrowser.class);
        UIBuilder.registerCustomComponent("Button", com.codename1.ui.Button.class);
        UIBuilder.registerCustomComponent("ComboBox", com.codename1.ui.ComboBox.class);
        UIBuilder.registerCustomComponent("Form", com.codename1.ui.Form.class);
        UIBuilder.registerCustomComponent("InfiniteProgress", com.codename1.components.InfiniteProgress.class);
        UIBuilder.registerCustomComponent("Label", com.codename1.ui.Label.class);
        UIBuilder.registerCustomComponent("TextField", com.codename1.ui.TextField.class);
        UIBuilder.registerCustomComponent("Container", com.codename1.ui.Container.class);
        if(loadTheme) {
            if(res == null) {
                try {
                    res = Resources.openLayered(resPath);
                } catch(java.io.IOException err) { err.printStackTrace(); }
            }
            initTheme(res);
        }
        return createContainer(resPath, "Bienvenido");
    }

    protected void initTheme(Resources res) {
            String[] themes = res.getThemeResourceNames();
            if(themes != null && themes.length > 0) {
                UIManager.getInstance().setThemeProps(res.getTheme(themes[0]));
            }
    }

    public StateMachineBase() {
    }

    public StateMachineBase(String resPath) {
        this(null, resPath, true);
    }

    public StateMachineBase(Resources res) {
        this(res, null, true);
    }

    public StateMachineBase(String resPath, boolean loadTheme) {
        this(null, resPath, loadTheme);
    }

    public StateMachineBase(Resources res, boolean loadTheme) {
        this(res, null, loadTheme);
    }

    public com.codename1.ui.Button findButton9(Component root) {
        return (com.codename1.ui.Button)findByName("Button9", root);
    }

    public com.codename1.ui.Button findButton9() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button9", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button9", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Container findContainer4(Component root) {
        return (com.codename1.ui.Container)findByName("Container4", root);
    }

    public com.codename1.ui.Container findContainer4() {
        com.codename1.ui.Container cmp = (com.codename1.ui.Container)findByName("Container4", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Container)findByName("Container4", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton8(Component root) {
        return (com.codename1.ui.Button)findByName("Button8", root);
    }

    public com.codename1.ui.Button findButton8() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button8", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button8", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Container findContainer3(Component root) {
        return (com.codename1.ui.Container)findByName("Container3", root);
    }

    public com.codename1.ui.Container findContainer3() {
        com.codename1.ui.Container cmp = (com.codename1.ui.Container)findByName("Container3", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Container)findByName("Container3", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton7(Component root) {
        return (com.codename1.ui.Button)findByName("Button7", root);
    }

    public com.codename1.ui.Button findButton7() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button7", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button7", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Container findContainer2(Component root) {
        return (com.codename1.ui.Container)findByName("Container2", root);
    }

    public com.codename1.ui.Container findContainer2() {
        com.codename1.ui.Container cmp = (com.codename1.ui.Container)findByName("Container2", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Container)findByName("Container2", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton6(Component root) {
        return (com.codename1.ui.Button)findByName("Button6", root);
    }

    public com.codename1.ui.Button findButton6() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button6", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button6", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Container findContainer1(Component root) {
        return (com.codename1.ui.Container)findByName("Container1", root);
    }

    public com.codename1.ui.Container findContainer1() {
        com.codename1.ui.Container cmp = (com.codename1.ui.Container)findByName("Container1", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Container)findByName("Container1", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton5(Component root) {
        return (com.codename1.ui.Button)findByName("Button5", root);
    }

    public com.codename1.ui.Button findButton5() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button5", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button5", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton4(Component root) {
        return (com.codename1.ui.Button)findByName("Button4", root);
    }

    public com.codename1.ui.Button findButton4() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button4", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button4", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Container findContainer7(Component root) {
        return (com.codename1.ui.Container)findByName("Container7", root);
    }

    public com.codename1.ui.Container findContainer7() {
        com.codename1.ui.Container cmp = (com.codename1.ui.Container)findByName("Container7", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Container)findByName("Container7", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton3(Component root) {
        return (com.codename1.ui.Button)findByName("Button3", root);
    }

    public com.codename1.ui.Button findButton3() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button3", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button3", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Container findContainer6(Component root) {
        return (com.codename1.ui.Container)findByName("Container6", root);
    }

    public com.codename1.ui.Container findContainer6() {
        com.codename1.ui.Container cmp = (com.codename1.ui.Container)findByName("Container6", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Container)findByName("Container6", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton2(Component root) {
        return (com.codename1.ui.Button)findByName("Button2", root);
    }

    public com.codename1.ui.Button findButton2() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button2", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button2", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.TextField findTextField1(Component root) {
        return (com.codename1.ui.TextField)findByName("TextField1", root);
    }

    public com.codename1.ui.TextField findTextField1() {
        com.codename1.ui.TextField cmp = (com.codename1.ui.TextField)findByName("TextField1", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.TextField)findByName("TextField1", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Container findContainer5(Component root) {
        return (com.codename1.ui.Container)findByName("Container5", root);
    }

    public com.codename1.ui.Container findContainer5() {
        com.codename1.ui.Container cmp = (com.codename1.ui.Container)findByName("Container5", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Container)findByName("Container5", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton20(Component root) {
        return (com.codename1.ui.Button)findByName("Button20", root);
    }

    public com.codename1.ui.Button findButton20() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button20", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button20", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.components.WebBrowser findWebBrowser(Component root) {
        return (com.codename1.components.WebBrowser)findByName("WebBrowser", root);
    }

    public com.codename1.components.WebBrowser findWebBrowser() {
        com.codename1.components.WebBrowser cmp = (com.codename1.components.WebBrowser)findByName("WebBrowser", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.components.WebBrowser)findByName("WebBrowser", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton(Component root) {
        return (com.codename1.ui.Button)findByName("Button", root);
    }

    public com.codename1.ui.Button findButton() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Label findLabel1(Component root) {
        return (com.codename1.ui.Label)findByName("Label1", root);
    }

    public com.codename1.ui.Label findLabel1() {
        com.codename1.ui.Label cmp = (com.codename1.ui.Label)findByName("Label1", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Label)findByName("Label1", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Label findLabel3(Component root) {
        return (com.codename1.ui.Label)findByName("Label3", root);
    }

    public com.codename1.ui.Label findLabel3() {
        com.codename1.ui.Label cmp = (com.codename1.ui.Label)findByName("Label3", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Label)findByName("Label3", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Label findLabel2(Component root) {
        return (com.codename1.ui.Label)findByName("Label2", root);
    }

    public com.codename1.ui.Label findLabel2() {
        com.codename1.ui.Label cmp = (com.codename1.ui.Label)findByName("Label2", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Label)findByName("Label2", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Container findContainer(Component root) {
        return (com.codename1.ui.Container)findByName("Container", root);
    }

    public com.codename1.ui.Container findContainer() {
        com.codename1.ui.Container cmp = (com.codename1.ui.Container)findByName("Container", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Container)findByName("Container", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton18(Component root) {
        return (com.codename1.ui.Button)findByName("Button18", root);
    }

    public com.codename1.ui.Button findButton18() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button18", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button18", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton17(Component root) {
        return (com.codename1.ui.Button)findByName("Button17", root);
    }

    public com.codename1.ui.Button findButton17() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button17", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button17", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.components.InfiniteProgress findInfiniteProgress(Component root) {
        return (com.codename1.components.InfiniteProgress)findByName("InfiniteProgress", root);
    }

    public com.codename1.components.InfiniteProgress findInfiniteProgress() {
        com.codename1.components.InfiniteProgress cmp = (com.codename1.components.InfiniteProgress)findByName("InfiniteProgress", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.components.InfiniteProgress)findByName("InfiniteProgress", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton19(Component root) {
        return (com.codename1.ui.Button)findByName("Button19", root);
    }

    public com.codename1.ui.Button findButton19() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button19", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button19", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton14(Component root) {
        return (com.codename1.ui.Button)findByName("Button14", root);
    }

    public com.codename1.ui.Button findButton14() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button14", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button14", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Label findLabel6(Component root) {
        return (com.codename1.ui.Label)findByName("Label6", root);
    }

    public com.codename1.ui.Label findLabel6() {
        com.codename1.ui.Label cmp = (com.codename1.ui.Label)findByName("Label6", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Label)findByName("Label6", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton13(Component root) {
        return (com.codename1.ui.Button)findByName("Button13", root);
    }

    public com.codename1.ui.Button findButton13() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button13", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button13", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton16(Component root) {
        return (com.codename1.ui.Button)findByName("Button16", root);
    }

    public com.codename1.ui.Button findButton16() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button16", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button16", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Label findLabel4(Component root) {
        return (com.codename1.ui.Label)findByName("Label4", root);
    }

    public com.codename1.ui.Label findLabel4() {
        com.codename1.ui.Label cmp = (com.codename1.ui.Label)findByName("Label4", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Label)findByName("Label4", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton15(Component root) {
        return (com.codename1.ui.Button)findByName("Button15", root);
    }

    public com.codename1.ui.Button findButton15() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button15", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button15", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Label findLabel5(Component root) {
        return (com.codename1.ui.Label)findByName("Label5", root);
    }

    public com.codename1.ui.Label findLabel5() {
        com.codename1.ui.Label cmp = (com.codename1.ui.Label)findByName("Label5", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Label)findByName("Label5", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton10(Component root) {
        return (com.codename1.ui.Button)findByName("Button10", root);
    }

    public com.codename1.ui.Button findButton10() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button10", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button10", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton12(Component root) {
        return (com.codename1.ui.Button)findByName("Button12", root);
    }

    public com.codename1.ui.Button findButton12() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button12", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button12", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton11(Component root) {
        return (com.codename1.ui.Button)findByName("Button11", root);
    }

    public com.codename1.ui.Button findButton11() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button11", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button11", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.ComboBox findComboBox1(Component root) {
        return (com.codename1.ui.ComboBox)findByName("ComboBox1", root);
    }

    public com.codename1.ui.ComboBox findComboBox1() {
        com.codename1.ui.ComboBox cmp = (com.codename1.ui.ComboBox)findByName("ComboBox1", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.ComboBox)findByName("ComboBox1", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.ComboBox findComboBox2(Component root) {
        return (com.codename1.ui.ComboBox)findByName("ComboBox2", root);
    }

    public com.codename1.ui.ComboBox findComboBox2() {
        com.codename1.ui.ComboBox cmp = (com.codename1.ui.ComboBox)findByName("ComboBox2", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.ComboBox)findByName("ComboBox2", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Label findLabel(Component root) {
        return (com.codename1.ui.Label)findByName("Label", root);
    }

    public com.codename1.ui.Label findLabel() {
        com.codename1.ui.Label cmp = (com.codename1.ui.Label)findByName("Label", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Label)findByName("Label", aboutToShowThisContainer);
        }
        return cmp;
    }

    public com.codename1.ui.Button findButton1(Component root) {
        return (com.codename1.ui.Button)findByName("Button1", root);
    }

    public com.codename1.ui.Button findButton1() {
        com.codename1.ui.Button cmp = (com.codename1.ui.Button)findByName("Button1", Display.getInstance().getCurrent());
        if(cmp == null && aboutToShowThisContainer != null) {
            cmp = (com.codename1.ui.Button)findByName("Button1", aboutToShowThisContainer);
        }
        return cmp;
    }

    public static final int COMMAND_BienvenidoCapacidad = 10;
    public static final int COMMAND_BienvenidoTipografia = 22;
    public static final int COMMAND_BienvenidoMoneda = 17;
    public static final int COMMAND_BienvenidoDensidad = 13;
    public static final int COMMAND_GUI1Command6 = 6;
    public static final int COMMAND_BienvenidoAngulos = 11;
    public static final int COMMAND_GUI1Command9 = 9;
    public static final int COMMAND_BienvenidoTiempo = 3;
    public static final int COMMAND_BienvenidoEnergia = 2;
    public static final int COMMAND_BienvenidoTemperatura = 21;
    public static final int COMMAND_BienvenidoFrecuencia = 14;
    public static final int COMMAND_BienvenidoConsumo = 12;
    public static final int COMMAND_BienvenidoLongitud = 1;
    public static final int COMMAND_BienvenidoPotencia = 18;
    public static final int COMMAND_BienvenidoInformatica = 16;
    public static final int COMMAND_BienvenidoSonido = 20;
    public static final int COMMAND_BienvenidoVelocidad = 4;
    public static final int COMMAND_BienvenidoPeso = 5;
    public static final int COMMAND_BienvenidoFuerza = 15;
    public static final int COMMAND_BienvenidoVolumen = 23;
    public static final int COMMAND_BienvenidoPresion = 19;
    public static final int COMMAND_BienvenidoArea = 7;

    protected boolean onBienvenidoCapacidad() {
        return false;
    }

    protected boolean onBienvenidoTipografia() {
        return false;
    }

    protected boolean onBienvenidoMoneda() {
        return false;
    }

    protected boolean onBienvenidoDensidad() {
        return false;
    }

    protected boolean onGUI1Command6() {
        return false;
    }

    protected boolean onBienvenidoAngulos() {
        return false;
    }

    protected boolean onGUI1Command9() {
        return false;
    }

    protected boolean onBienvenidoTiempo() {
        return false;
    }

    protected boolean onBienvenidoEnergia() {
        return false;
    }

    protected boolean onBienvenidoTemperatura() {
        return false;
    }

    protected boolean onBienvenidoFrecuencia() {
        return false;
    }

    protected boolean onBienvenidoConsumo() {
        return false;
    }

    protected boolean onBienvenidoLongitud() {
        return false;
    }

    protected boolean onBienvenidoPotencia() {
        return false;
    }

    protected boolean onBienvenidoInformatica() {
        return false;
    }

    protected boolean onBienvenidoSonido() {
        return false;
    }

    protected boolean onBienvenidoVelocidad() {
        return false;
    }

    protected boolean onBienvenidoPeso() {
        return false;
    }

    protected boolean onBienvenidoFuerza() {
        return false;
    }

    protected boolean onBienvenidoVolumen() {
        return false;
    }

    protected boolean onBienvenidoPresion() {
        return false;
    }

    protected boolean onBienvenidoArea() {
        return false;
    }

    protected void processCommand(ActionEvent ev, Command cmd) {
        switch(cmd.getId()) {
            case COMMAND_BienvenidoCapacidad:
                if(onBienvenidoCapacidad()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoTipografia:
                if(onBienvenidoTipografia()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoMoneda:
                if(onBienvenidoMoneda()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoDensidad:
                if(onBienvenidoDensidad()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_GUI1Command6:
                if(onGUI1Command6()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoAngulos:
                if(onBienvenidoAngulos()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_GUI1Command9:
                if(onGUI1Command9()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoTiempo:
                if(onBienvenidoTiempo()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoEnergia:
                if(onBienvenidoEnergia()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoTemperatura:
                if(onBienvenidoTemperatura()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoFrecuencia:
                if(onBienvenidoFrecuencia()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoConsumo:
                if(onBienvenidoConsumo()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoLongitud:
                if(onBienvenidoLongitud()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoPotencia:
                if(onBienvenidoPotencia()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoInformatica:
                if(onBienvenidoInformatica()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoSonido:
                if(onBienvenidoSonido()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoVelocidad:
                if(onBienvenidoVelocidad()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoPeso:
                if(onBienvenidoPeso()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoFuerza:
                if(onBienvenidoFuerza()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoVolumen:
                if(onBienvenidoVolumen()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoPresion:
                if(onBienvenidoPresion()) {
                    ev.consume();
                    return;
                }
                break;

            case COMMAND_BienvenidoArea:
                if(onBienvenidoArea()) {
                    ev.consume();
                    return;
                }
                break;

        }
        if(ev.getComponent() != null) {
            handleComponentAction(ev.getComponent(), ev);
        }
    }

    protected void exitForm(Form f) {
        if("Moneda".equals(f.getName())) {
            exitMoneda(f);
            aboutToShowThisContainer = null;
            return;
        }

        if("GUI1".equals(f.getName())) {
            exitGUI1(f);
            aboutToShowThisContainer = null;
            return;
        }

        if("Splash".equals(f.getName())) {
            exitSplash(f);
            aboutToShowThisContainer = null;
            return;
        }

        if("Bienvenido".equals(f.getName())) {
            exitBienvenido(f);
            aboutToShowThisContainer = null;
            return;
        }

    }


    protected void exitMoneda(Form f) {
    }


    protected void exitGUI1(Form f) {
    }


    protected void exitSplash(Form f) {
    }


    protected void exitBienvenido(Form f) {
    }

    protected void beforeShow(Form f) {
    aboutToShowThisContainer = f;
        if("Moneda".equals(f.getName())) {
            beforeMoneda(f);
            aboutToShowThisContainer = null;
            return;
        }

        if("GUI1".equals(f.getName())) {
            beforeGUI1(f);
            aboutToShowThisContainer = null;
            return;
        }

        if("Splash".equals(f.getName())) {
            beforeSplash(f);
            aboutToShowThisContainer = null;
            return;
        }

        if("Bienvenido".equals(f.getName())) {
            beforeBienvenido(f);
            aboutToShowThisContainer = null;
            return;
        }

    }


    protected void beforeMoneda(Form f) {
    }


    protected void beforeGUI1(Form f) {
    }


    protected void beforeSplash(Form f) {
    }


    protected void beforeBienvenido(Form f) {
    }

    protected void beforeShowContainer(Container c) {
    aboutToShowThisContainer = c;
        if("Moneda".equals(c.getName())) {
            beforeContainerMoneda(c);
            aboutToShowThisContainer = null;
            return;
        }

        if("GUI1".equals(c.getName())) {
            beforeContainerGUI1(c);
            aboutToShowThisContainer = null;
            return;
        }

        if("Splash".equals(c.getName())) {
            beforeContainerSplash(c);
            aboutToShowThisContainer = null;
            return;
        }

        if("Bienvenido".equals(c.getName())) {
            beforeContainerBienvenido(c);
            aboutToShowThisContainer = null;
            return;
        }

    }


    protected void beforeContainerMoneda(Container c) {
    }


    protected void beforeContainerGUI1(Container c) {
    }


    protected void beforeContainerSplash(Container c) {
    }


    protected void beforeContainerBienvenido(Container c) {
    }

    protected void postShow(Form f) {
        if("Moneda".equals(f.getName())) {
            postMoneda(f);
            aboutToShowThisContainer = null;
            return;
        }

        if("GUI1".equals(f.getName())) {
            postGUI1(f);
            aboutToShowThisContainer = null;
            return;
        }

        if("Splash".equals(f.getName())) {
            postSplash(f);
            aboutToShowThisContainer = null;
            return;
        }

        if("Bienvenido".equals(f.getName())) {
            postBienvenido(f);
            aboutToShowThisContainer = null;
            return;
        }

    }


    protected void postMoneda(Form f) {
    }


    protected void postGUI1(Form f) {
    }


    protected void postSplash(Form f) {
    }


    protected void postBienvenido(Form f) {
    }

    protected void postShowContainer(Container c) {
        if("Moneda".equals(c.getName())) {
            postContainerMoneda(c);
            aboutToShowThisContainer = null;
            return;
        }

        if("GUI1".equals(c.getName())) {
            postContainerGUI1(c);
            aboutToShowThisContainer = null;
            return;
        }

        if("Splash".equals(c.getName())) {
            postContainerSplash(c);
            aboutToShowThisContainer = null;
            return;
        }

        if("Bienvenido".equals(c.getName())) {
            postContainerBienvenido(c);
            aboutToShowThisContainer = null;
            return;
        }

    }


    protected void postContainerMoneda(Container c) {
    }


    protected void postContainerGUI1(Container c) {
    }


    protected void postContainerSplash(Container c) {
    }


    protected void postContainerBienvenido(Container c) {
    }

    protected void onCreateRoot(String rootName) {
        if("Moneda".equals(rootName)) {
            onCreateMoneda();
            aboutToShowThisContainer = null;
            return;
        }

        if("GUI1".equals(rootName)) {
            onCreateGUI1();
            aboutToShowThisContainer = null;
            return;
        }

        if("Splash".equals(rootName)) {
            onCreateSplash();
            aboutToShowThisContainer = null;
            return;
        }

        if("Bienvenido".equals(rootName)) {
            onCreateBienvenido();
            aboutToShowThisContainer = null;
            return;
        }

    }


    protected void onCreateMoneda() {
    }


    protected void onCreateGUI1() {
    }


    protected void onCreateSplash() {
    }


    protected void onCreateBienvenido() {
    }

    protected boolean setListModel(List cmp) {
        String listName = cmp.getName();
        if("ComboBox1".equals(listName)) {
            return initListModelComboBox1(cmp);
        }
        if("ComboBox2".equals(listName)) {
            return initListModelComboBox2(cmp);
        }
        return super.setListModel(cmp);
    }

    protected boolean initListModelComboBox1(List cmp) {
        return false;
    }

    protected boolean initListModelComboBox2(List cmp) {
        return false;
    }

    protected void handleComponentAction(Component c, ActionEvent event) {
        Container rootContainerAncestor = getRootAncestor(c);
        if(rootContainerAncestor == null) return;
        String rootContainerName = rootContainerAncestor.getName();
        if(c.getParent().getLeadParent() != null) {
            c = c.getParent().getLeadParent();
        }
        if(rootContainerName == null) return;
        if(rootContainerName.equals("Moneda")) {
            if("Button14".equals(c.getName())) {
                onMoneda_Button14Action(c, event);
                return;
            }
            if("Button12".equals(c.getName())) {
                onMoneda_Button12Action(c, event);
                return;
            }
        }
        if(rootContainerName.equals("GUI1")) {
            if("Button14".equals(c.getName())) {
                onGUI1_Button14Action(c, event);
                return;
            }
            if("Button12".equals(c.getName())) {
                onGUI1_Button12Action(c, event);
                return;
            }
            if("TextField1".equals(c.getName())) {
                onGUI1_TextField1Action(c, event);
                return;
            }
            if("ComboBox1".equals(c.getName())) {
                onGUI1_ComboBox1Action(c, event);
                return;
            }
            if("ComboBox2".equals(c.getName())) {
                onGUI1_ComboBox2Action(c, event);
                return;
            }
            if("Button".equals(c.getName())) {
                onGUI1_ButtonAction(c, event);
                return;
            }
            if("Button1".equals(c.getName())) {
                onGUI1_Button1Action(c, event);
                return;
            }
            if("Button2".equals(c.getName())) {
                onGUI1_Button2Action(c, event);
                return;
            }
            if("Button3".equals(c.getName())) {
                onGUI1_Button3Action(c, event);
                return;
            }
            if("Button4".equals(c.getName())) {
                onGUI1_Button4Action(c, event);
                return;
            }
            if("Button5".equals(c.getName())) {
                onGUI1_Button5Action(c, event);
                return;
            }
            if("Button6".equals(c.getName())) {
                onGUI1_Button6Action(c, event);
                return;
            }
            if("Button7".equals(c.getName())) {
                onGUI1_Button7Action(c, event);
                return;
            }
            if("Button8".equals(c.getName())) {
                onGUI1_Button8Action(c, event);
                return;
            }
            if("Button9".equals(c.getName())) {
                onGUI1_Button9Action(c, event);
                return;
            }
            if("Button10".equals(c.getName())) {
                onGUI1_Button10Action(c, event);
                return;
            }
            if("Button13".equals(c.getName())) {
                onGUI1_Button13Action(c, event);
                return;
            }
            if("Button11".equals(c.getName())) {
                onGUI1_Button11Action(c, event);
                return;
            }
        }
        if(rootContainerName.equals("Bienvenido")) {
            if("Button1".equals(c.getName())) {
                onBienvenido_Button1Action(c, event);
                return;
            }
            if("Button2".equals(c.getName())) {
                onBienvenido_Button2Action(c, event);
                return;
            }
            if("Button4".equals(c.getName())) {
                onBienvenido_Button4Action(c, event);
                return;
            }
            if("Button3".equals(c.getName())) {
                onBienvenido_Button3Action(c, event);
                return;
            }
            if("Button5".equals(c.getName())) {
                onBienvenido_Button5Action(c, event);
                return;
            }
            if("Button6".equals(c.getName())) {
                onBienvenido_Button6Action(c, event);
                return;
            }
            if("Button7".equals(c.getName())) {
                onBienvenido_Button7Action(c, event);
                return;
            }
            if("Button8".equals(c.getName())) {
                onBienvenido_Button8Action(c, event);
                return;
            }
            if("Button9".equals(c.getName())) {
                onBienvenido_Button9Action(c, event);
                return;
            }
            if("Button10".equals(c.getName())) {
                onBienvenido_Button10Action(c, event);
                return;
            }
            if("Button11".equals(c.getName())) {
                onBienvenido_Button11Action(c, event);
                return;
            }
            if("Button12".equals(c.getName())) {
                onBienvenido_Button12Action(c, event);
                return;
            }
            if("Button13".equals(c.getName())) {
                onBienvenido_Button13Action(c, event);
                return;
            }
            if("Button14".equals(c.getName())) {
                onBienvenido_Button14Action(c, event);
                return;
            }
            if("Button15".equals(c.getName())) {
                onBienvenido_Button15Action(c, event);
                return;
            }
            if("Button16".equals(c.getName())) {
                onBienvenido_Button16Action(c, event);
                return;
            }
            if("Button17".equals(c.getName())) {
                onBienvenido_Button17Action(c, event);
                return;
            }
            if("Button18".equals(c.getName())) {
                onBienvenido_Button18Action(c, event);
                return;
            }
            if("Button19".equals(c.getName())) {
                onBienvenido_Button19Action(c, event);
                return;
            }
            if("Button20".equals(c.getName())) {
                onBienvenido_Button20Action(c, event);
                return;
            }
        }
    }

      protected void onMoneda_Button14Action(Component c, ActionEvent event) {
      }

      protected void onMoneda_Button12Action(Component c, ActionEvent event) {
      }

      protected void onGUI1_Button14Action(Component c, ActionEvent event) {
      }

      protected void onGUI1_Button12Action(Component c, ActionEvent event) {
      }

      protected void onGUI1_TextField1Action(Component c, ActionEvent event) {
      }

      protected void onGUI1_ComboBox1Action(Component c, ActionEvent event) {
      }

      protected void onGUI1_ComboBox2Action(Component c, ActionEvent event) {
      }

      protected void onGUI1_ButtonAction(Component c, ActionEvent event) {
      }

      protected void onGUI1_Button1Action(Component c, ActionEvent event) {
      }

      protected void onGUI1_Button2Action(Component c, ActionEvent event) {
      }

      protected void onGUI1_Button3Action(Component c, ActionEvent event) {
      }

      protected void onGUI1_Button4Action(Component c, ActionEvent event) {
      }

      protected void onGUI1_Button5Action(Component c, ActionEvent event) {
      }

      protected void onGUI1_Button6Action(Component c, ActionEvent event) {
      }

      protected void onGUI1_Button7Action(Component c, ActionEvent event) {
      }

      protected void onGUI1_Button8Action(Component c, ActionEvent event) {
      }

      protected void onGUI1_Button9Action(Component c, ActionEvent event) {
      }

      protected void onGUI1_Button10Action(Component c, ActionEvent event) {
      }

      protected void onGUI1_Button13Action(Component c, ActionEvent event) {
      }

      protected void onGUI1_Button11Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button1Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button2Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button4Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button3Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button5Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button6Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button7Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button8Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button9Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button10Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button11Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button12Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button13Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button14Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button15Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button16Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button17Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button18Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button19Action(Component c, ActionEvent event) {
      }

      protected void onBienvenido_Button20Action(Component c, ActionEvent event) {
      }

}
